
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

class CustomPage extends StatelessWidget {
  const CustomPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Custom"),
        centerTitle: true,
        leading: IconButton(onPressed: () {
          context.pop();
        }, icon: Icon(Icons.arrow_back_ios_rounded)),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            ElevatedButton(
              onPressed: () {
                context.push('/custom/circularSeekBar');
              },
              child: const Text('circularSeekBar'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/snProgressDialog'),
              child: const Text('snProgressDialog'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/pieChart'),
              child: const Text('pieChart'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/flBarChart'),
              child: const Text('flBarChart'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/percentIndicator'),
              child: const Text('PercentIndicator'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/customPainter'),
              child: const Text('CustomPainter'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/pie'),
              child: const Text('PieChartDemo'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/basicTimelinePage'),
              child: const Text('basicTimelinePage'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/expandableTimelinePage'),
              child: const Text('expandableTimelinePage'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/horizontalSlider'),
              child: const Text('horizontalSlider'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/caliper'),
              child: const Text('caliper'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/infiniteTime'),
              child: const Text('infiniteTime'),
            ),
            ElevatedButton(
              onPressed: () => context.push('/custom/scrollableTime'),
              child: const Text('scrollableTime'),
            ),
          ],
        ),
      ),
    );
  }
}
